package com.ssm.service.impl;

import com.ssm.dao.OrderFormDao;
import com.ssm.pojo.OrderForm;
import com.ssm.service.OrderFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderFormServiceImpl implements OrderFormService{

    @Autowired
    private OrderFormDao orderFormDao;

    @Override
    public void addOrderForm(OrderForm orderForm) {
        orderFormDao.addOrderForm(orderForm);
    }

    @Override
    public List<OrderForm> getOrderFormBy(Integer settleAccounts) {
        return orderFormDao.getOrderFormBy(settleAccounts);
    }

    @Override
    public void delectOrderForm(Integer id) {
        orderFormDao.delectOrderForm(id);
    }

    @Override
    public void updateOrderForm(OrderForm orderForm) {

            orderFormDao.updateOrderForm(orderForm);


    }

    @Override
    public List<OrderForm> getOrderForm(Integer id) {
        return orderFormDao.getOrderForm(id);
    }
}
